
<#include "/common/head.html"/>

 <div class="easyui-panel updatePage" data-options="fit:true,border:false">
    <form id="ff" class="easyui-form" method="post">
        <table class="table1">
        	<tr >
        		<th><span>盘点单名：</span></th>
               	<td colspan="4">
               		<input class="easyui-textbox" type="text" name="pd_name" value="${model.pd_name!''}" data-options="" style="width:80%"></input>
           		</td>
        	</tr>
            <tr>
           		<th><span>盘点单号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="pd_no" value="${model.pd_no!''}" data-options=""></input>
           		</td>
           		
           		<th><span>盘点时间：</span></th>
               	<td>
               		<input class="easyui-datebox" type="text" name="pd_time" value="${model.pd_time!''}" data-options=""></input>
           		</td>
           		
            </tr>
            <tr>
           		<th><span>盘点人：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="pd_user" value="${model.pd_user!''}" data-options=""></input>
           		</td>
           		
           		<th><span>盘点类型：</span></th>
               	<td>
               		<input id="pd_type" name="pd_type" class="easyui-combobox" value="${model.pd_type!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDatapd_type.keySet() as key>,{id:'${key}', text:'${dictDatapd_type.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           		
            </tr>
            <tr>
           		<th><span>仓库编号：</span></th>
               	<td colspan="4">
               		<input id="storage_no" name="storage_no" class="easyui-combobox" value="${model.storage_no!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDatastorage_no.keySet() as key>,{id:'${key}', text:'${dictDatastorage_no.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           		
            </tr>
        </table>
    </form>
</div>
<script>
top.window.subPage.save = save;
function save() {
	if($("#zcurdHeadTable").form('validate')) {
		$.post("update", getParam(), function(data) {
			top.window.closeWindow();
			top.window.subPage.loadCurrDatagrid();
		});
	}
}
function getParam() {
	var param = {
	     
	    "id": ${model.id}, 
       	    "model.pd_no": getInputValue("pd_no"), 
       	    "model.pd_time": getInputValue("pd_time"), 
       	    "model.pd_user": getInputValue("pd_user"), 
       	    "model.pd_type": getInputValue("pd_type"), 
       	    "model.storage_no": getInputValue("storage_no"), 
       	    "model.pd_name": getInputValue("pd_name"), 
	}
	for(key in param) {
		if(!param[key]) {
			delete param[key];
		}
	}
	return param;
}

//扩展js
</script>
<#include "/common/foot.html"/>
